import request from '@/utils/request'

// export function login(data) {
//   return request({
//     url: '/vue-element-admin/user/login',
//     method: 'post',
//     data
//   })
// }

export function login(username, password, uuid, code) {
    const data = {
        username,
        password,
        code,
        uuid
    }
    return request({
        url: '/login',
        method: 'post',
        params: data
    })
}
export function getInfo() {
    return request({
        url: '/getInfo',
        method: 'get'
    })
}
export function logout() {
    return request({
        url: '/vue-element-admin/user/logout',
        method: 'post'
    })
}